// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import GameData_red_blue_man from "../Script/GameData_red_blue_man";

const {ccclass, property} = cc._decorator;

@ccclass
export default class FingerAnim extends cc.Component {

    @property()
    show = true;

    onLoad () {
        this.node.active = this.show; 
    }

    start () {
        this.anim();
    }

    anim(){
        cc.tween(this.node)
            .repeatForever(
                cc.tween()
                    .to(0.4, {scale:1.2})
                    .to(0.4,{scale:1})
            )
            .start()
    }

    // update (dt) {}
}
